package io.gitee.archx.sc.data.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * HiFeignClient
 *
 * @author Archx[archx@foxmail.com]
 * at 2018/7/24 23:31
 */
@FeignClient(name = "spring-cloud-service-provider", fallback = HiFeignClientFallback.class)
public interface HiFeignClient {

    @GetMapping("/hello/{name}")
    String hi(@PathVariable("name") String name);
}
